package com.syj.usepagehelper.model.vo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName : PageRequest
 * @Description :
 * @Author : 石蕴杰
 * @Date: 2020/6/28 22:02
 */
@Data
public class PageRequest {
    @Min(value = 1, message = "页号最小为1")
    @NotNull(message = "页号不能为空")
    @ApiModelProperty(value = "页号", required = true)
    private Integer pageNum;

    @Min(value = 1, message = "分页数据大小最小为1")
    @ApiModelProperty(value = "分页数据大小",hidden = true)
    private Integer pageSize;

    @ApiModelProperty(value = "id")
    private String id;
}
